//
//  Importer.h
//  iBioCAD
//
//  Created by Orbitus on 10/4/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "MyDocument.h"

@interface Importer : NSObject {
	
	NSNotification * NSMOCDidChangeNotification;
	IBOutlet NSTextView *DNAtextView;
	IBOutlet NSProgressIndicator *importerBusyIndicator;
	IBOutlet NSPanel *importerPanel;
	IBOutlet NSTextField *mySystemMessages;
	IBOutlet NSPathControl *ncuPathControl;
	IBOutlet NSPathControl *cddPathControl;
	IBOutlet NSPathControl *ucePathControl;
	IBOutlet NSPathControl *blocksPathControl;
	IBOutlet id cascadeMe;
	
	NSPersistentStoreCoordinator *persistentStoreCoordinator;
    NSManagedObjectModel *managedObjectModel;
    NSManagedObjectContext *managedObjectContext;
	
	NSDictionary * entities;
	NSDictionary * singleLetter;
	NSDictionary * fullName;
	
	NSEntityDescription * uceEntity;
	NSEntityDescription * ncuEntity;
	NSEntityDescription * cddEntity;
	NSEntityDescription * blocksEntity;
	NSEntityDescription * clusterEntity;
	NSEntityDescription * proteinEntity;
	NSEntityDescription * monomerEntity;
	NSEntityDescription * dnaEntity;
	NSEntityDescription * mRNAEntity;
	NSEntityDescription * aminoacidEntity;
	NSEntityDescription * atomEntity;
	
	NSSortDescriptor * ncuSort;
	NSSortDescriptor * uceSortName;
	NSSortDescriptor * uceSortProtStart;
	NSSortDescriptor * cddSortName;
	NSSortDescriptor * cddSortProtStart;
	NSSortDescriptor * blocksSortName;
	NSSortDescriptor * blocksSortProtStart;	
	NSSortDescriptor * clusterSort;
	NSSortDescriptor * proteinSort;
	NSSortDescriptor * monomerSort;
	NSSortDescriptor * dnaSort;
	NSSortDescriptor * mRNASort;
	NSSortDescriptor * aminoacidSort;
	NSSortDescriptor * atomSort;
	
	NSArray * uceSortDescriptors;
	NSArray * ncuSortDescriptors;
	NSArray * cddSortDescriptors;
	NSArray * blocksSortDescriptors;
	NSArray * clusterSortDescriptors;
	NSArray * proteinSortDescriptors;
	NSArray * monomerSortDescriptors;
	NSArray * dnaSortDescriptors;
	NSArray * mRNASortDescriptors;
	NSArray * aminoacidSortDescriptors;
	NSArray * atomSortDescriptors;
	
	NSFetchRequest * uceFetch;
	NSFetchRequest * ncuFetch;
	NSFetchRequest * cddFetch;
	NSFetchRequest * blocksFetch;
	NSFetchRequest * clusterFetch;
	NSFetchRequest * proteinFetch;
	NSFetchRequest * monomerFetch;
	NSFetchRequest * dnaFetch;
	NSFetchRequest * mRNAFetch;
	NSFetchRequest * aminoacidFetch;
	NSFetchRequest * atomFetch;
	
	NSPredicate * predicate;
	
	NSString *pathExtension;
	id myDocController;
	id myDocs;
	id highlightDocument;
	
}
- (IBAction)importAllData:sender;

- (void) openFiles:(id)myFiles;
- (id) managedObjectModel;
- (id) managedObjectContext;


@end
